package cw.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cw.entity.ArrangeGroup;
import cw.entity.Competition;

public interface CompetitionMapper {
	
	int deleteAll();
	
    int deleteByPrimaryKey(Integer id);

    int insert(Competition record);

    int insertSelective(Competition record);

    Competition selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Competition record);

    int updateByPrimaryKey(Competition record);
    
    List<Competition> queryCompetition(@Param("teamId") String teamId,@Param("teamTid") String teamTid,@Param("description") String description,@Param("id") String id,@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    Integer getTotal(@Param("teamId") String teamId,@Param("teamTid") String teamTid,@Param("description") String description,@Param("id") String id);
    
    List<Competition> query();
}